package com.rpframework.website.device.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.rpframework.core.BaseService;
import com.rpframework.utils.Pager;
import com.rpframework.website.device.dao.IInformationDao;
import com.rpframework.website.device.domain.Information;
@Service
public class InformationService extends BaseService{
	@Resource IInformationDao iidao;
	
	
	public Pager<Information> getpager(Pager<Information> pager) {
		long startTime=System.currentTimeMillis();
		List<Information>  list=iidao.doPager(this.packageMyBatisParam(pager));
		pager.setItemList(list);
		pager.setCostTime(System.currentTimeMillis() - startTime);
		return pager;
	}


	public Information selectOnlyOne(int parseInt) {
		// TODO Auto-generated method stub
		return iidao.select(parseInt);
	}


	public boolean insertdo(Information information) {
		// TODO Auto-generated method stub
		return iidao.insert(information);
	}


	public boolean updatewiden(Information information) {
		// TODO Auto-generated method stub
		return iidao.update(information);
	}


	public boolean deletedo(String id) {
		// TODO Auto-generated method stub
		return iidao.delete(id);
	}
}
